<template>
  <web-view v-if="src != ''" :src="src"></web-view>
</template>

<script>
import hook from "@/mixins/hook"
import page from "@/mixins/page"
export default {
  mixins: [hook, page],
  data() {
    return {
      src: ""
    }
  },
  onLoad(option) {
    this.src = option.src || uni.$getCache("webviewSrc")
    uni.setNavigationBarTitle({ title: option.title || "" })

    console.log("webview地址：", this.src, option)
  }
}
</script>

<style></style>
